package com.xueyi.system.program.service.impl;

import com.xueyi.system.program.domain.query.BaseTrainProgramQuery;
import com.xueyi.system.program.domain.dto.BaseTrainProgramDto;
import com.xueyi.system.program.service.IBaseTrainProgramService;
import com.xueyi.system.program.manager.IBaseTrainProgramManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 培训计划管理 服务层处理
 *
 * @author yanhe
 */
@Service
public class BaseTrainProgramServiceImpl extends BaseServiceImpl<BaseTrainProgramQuery, BaseTrainProgramDto, IBaseTrainProgramManager> implements IBaseTrainProgramService {

    /**
     * 查询培训计划对象列表 | 数据权限 | 附加数据
     *
     * @param baseTrainProgram 培训计划对象
     * @return 培训计划对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"BaseTrainProgramMapper"})
    public List<BaseTrainProgramDto> selectListScope(BaseTrainProgramQuery baseTrainProgram) {
        return baseManager.selectListExtra(baseTrainProgram);
    }

}